Design of a 3 bit binary weighted resistor network DAC